package com.jianguo.service.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jianguo.common.core.domain.BaseEntity;
import com.jianguo.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;

/**
 * 服务步骤对象 pz_service_step
 *
 * @author xjj
 * @date 2024-04-11
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PzServiceStep extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    /** 步骤名 */
    @Excel(name = "步骤名")
    private String name;
    /** 排序 */
    @Excel(name = "排序")
    private Long sort;
    /** 服务id */
    @Excel(name = "服务id")
    private String serviceId;
    /** 服务标题 */
    @Excel(name = "服务标题")
    private String serviceTitle;
    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long status;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("sort", getSort())
            .append("serviceId", getServiceId())
            .append("serviceTitle", getServiceTitle())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("deleted", getDeleted())
            .append("remark", getRemark())
        .toString();
    }
}
